# -*- coding: utf-8 -*-

'''
Created on 8 nov. 2009

@author: vincent.vanghelle
'''


from django.shortcuts import render_to_response
from mmorganizer.users.forms import UserCreateForm

def create(request):
    if request.POST:
        form = UserCreateForm(request.POST)
        if form.is_valid():
            form.save(commit=True)
    else:
        form = UserCreateForm()
    return render_to_response('users/create.html',{'userform':form, 'user':request.user})